component.calendar

fullcalendar

Draggable Events

  • My Event 1
  • My Event 2
  • My Event 3
  • My Event 4
  • My Event 5

FLAT PLUS provides a full-sized, drag & drop calendar. It uses AJAX to fetch events on-the-fly for each month and is easily configured to use your own feed format, plus there's an extension provided for Google Calendar.

<div class="row">
	<div class="col-md-8">
	
		<!-- Widget -->
		<div class="widget">
			<div class="widget-body">
				<div data-component>
					<div id="calendar"></div>
					
				</div>
			</div>
		</div>
		<!-- // Widget END -->
	
	</div>
	<div class="col-md-4">
	
		<!-- External Events -->
		<div class="uniformjs" id="external-events">
		
			<!-- Widget -->
			<div class="widget widget-inverse">
			
				<!-- Widget heading -->
				<div class="widget-head">
					<h3 class="heading">Draggable Events</h3>
				</div>
				<!-- // Widget heading END -->
				
				<div class="widget-body">
				
					<!-- Events list -->
					<ul class="unstyled">
						<li class="glyphicons move"><i></i> My Event 1</li>
						<li class="glyphicons move"><i></i> My Event 2</li>
						<li class="glyphicons move"><i></i> My Event 3</li>
						<li class="glyphicons move"><i></i> My Event 4</li>
						<li class="glyphicons move"><i></i> My Event 5</li>
					</ul>
					<!-- Events list END -->
					
					<label for="drop-remove" class="checkbox">
						<input type="checkbox" class="checkbox" id="drop-remove" /> 
						remove after drop
					</label>
					<p>FLAT PLUS provides a full-sized, drag &amp; drop calendar. It uses AJAX to fetch events on-the-fly for each month and is easily configured to use your own feed format, plus there's an extension provided for Google Calendar.</p>
				</div>
			</div>
			<!-- // Widget END -->
			
			
			
			
		</div>
		<!-- // External Events END -->
		
	</div>
</div>

Code

@import "http://localhost/shared/components/modules/admin/forms/elements/uniform/assets/lib/css/uniform.default.css";
@import "http://localhost/shared/components/modules/admin/forms/elements/uniform/assets/custom/less/uniformjs.less";
@import "http://localhost/shared/components/library/jquery-ui/css/jquery-ui.min.css";
@import "http://localhost/shared/components/modules/admin/calendar/assets/lib/css/fullcalendar.css";
@import "http://localhost/shared/components/modules/admin/calendar/assets/custom/less/calendar.less";
@import "assets/components/core/less/widgets.less";

Usage

  1. Create a new LESS file (eg. styles.less)
  2. Copy & paste the above imports in the LESS file.
  3. Place the file in your project's document root.
  4. Load the LESS file into the <head> section of your HTML document, before any JavaScript files:

    <link type="stylesheet/less" href="styles.less" />

    NOTE  All the styles from the CORE package also need to be imported in this file, before the component imports.

  5. If you'd like to include other components on the same page, don't create multiple LESS files, but add all the imports in one file. You can create a LESS file for each page with just the resources used for that specific page, or you could create and use a single LESS file for the entire project.
  6. In production, compile the LESS file and use the resulting minified CSS file in the HTML document.

Scripts

HEAD You should include the following scripts in the head section of the document, right before the closing </head> tag, after styles.

<script src="assets/components/library/jquery-ui/js/jquery-ui.min.js?v=v1.2.3"></script>
<script src="assets/components/plugins/jquery-ui-touch-punch/jquery.ui.touch-punch.min.js?v=v1.2.3"></script>

Scripts

BODY You should include the following scripts at the end of the HTML document, right before the closing </body> tag.

<script src="assets/components/modules/admin/forms/elements/uniform/assets/lib/js/jquery.uniform.min.js?v=v1.2.3"></script>
<script src="assets/components/modules/admin/forms/elements/uniform/assets/custom/js/uniform.init.js?v=v1.2.3"></script>
<script src="assets/components/modules/admin/calendar/assets/lib/js/fullcalendar.min.js?v=v1.2.3"></script>
<script src="assets/components/modules/admin/calendar/assets/custom/js/calendar.init.js?v=v1.2.3"></script>